﻿Public Class DatHangDT

    Private _ma As String
    Public Property MaDatHang
        Get
            Return _ma
        End Get
        Set(ByVal value)
            _ma = value
        End Set
    End Property

    Private _maKH As String
    Public Property MaKH
        Get
            Return _maKH
        End Get
        Set(ByVal value)
            _maKH = value
        End Set
    End Property

    Private _tinhtrang As String
    Public Property TinhTrang
        Get
            Return _tinhtrang
        End Get
        Set(ByVal value)
            _tinhtrang = value
        End Set
    End Property

    Private _ngay As Date
    Public Property NgayDatHang
        Get
            Return _ngay
        End Get
        Set(ByVal value)
            _ngay = value
        End Set
    End Property

    Private _ngayhen As String
    Public Property NgayHenGiao
        Get
            Return _ngayhen
        End Get
        Set(ByVal value)
            _ngayhen = value
        End Set
    End Property

    Private _maNV As String
    Public Property MaNV
        Get
            Return _maNV
        End Get
        Set(ByVal value)
            _maNV = value
        End Set
    End Property

    Private _tongtien As Double
    Public Property TongTien
        Get
            Return _tongtien
        End Get
        Set(ByVal value)
            _tongtien = value
        End Set
    End Property
    'Search
    Public Sub New(ByVal tinhtrang As String)
        Me._tinhtrang = tinhtrang
    End Sub
    Public Sub New(ByVal maKH As String, ByVal ngaydat As Date, ByVal ngayhen As Date)
        Me._maKH = maKH
        Me._ngay = ngaydat
        Me._ngayhen = ngayhen
    End Sub
    Public Sub New(ByVal ma As String, ByVal ngaydat As Date, ByVal ngayhen As Date, ByVal maNV As String, ByVal maKH As String, ByVal tinhtrang As String, ByVal tongtien As Double)
        Me._ma = ma
        Me._maKH = maKH
        Me._ngay = ngaydat
        Me._ngayhen = ngayhen
        Me._maNV = maNV
        Me._tinhtrang = tinhtrang
        Me._tongtien = tongtien
    End Sub

    'Khoitao
    Public Sub New(ByVal ma As String, ByVal ngaydat As Date, ByVal ngayhen As Date, ByVal maNV As String, ByVal maKH As String, ByVal tinhtrang As String)
        Me._ma = ma
        Me._maKH = maKH
        Me._ngay = ngaydat
        Me._ngayhen = ngayhen
        Me._maNV = maNV
        Me._tinhtrang = tinhtrang
    End Sub
    Public Sub New(ByVal ma As String, ByVal ngaydat As Date, ByVal maNV As String, ByVal maKH As String, ByVal tinhtrang As String)
        Me._ma = ma
        Me._maKH = maKH
        Me._ngay = ngaydat
        Me._maNV = maNV
        Me._tinhtrang = tinhtrang
    End Sub

    'Update ngayhen,tinhtrang
    Public Sub New(ByVal ma As String, ByVal ngayhen As Date, ByVal tinhtrang As String)
        Me._ma = ma
        Me._tinhtrang = tinhtrang
        Me._ngayhen = ngayhen
    End Sub

    'Update tongtien
    Public Sub New(ByVal ma As String, ByVal tongtien As Double)
        Me._ma = ma
        Me._tongtien = tongtien
    End Sub
End Class
